package com.example.locationreport.locationreport.bean;

import java.io.Serializable;

/**
 * 车辆上报OBD消息
 *
 * @author liangbch
 */
public class ObdMessageBean implements Serializable {

    private static final long serialVersionUID = -1L;

    /**
     * 车辆imei号
     */
    private String imei;

    /**
     * 终端当前版本号
     */
    private String appVersions;

    /**
     * 车辆id
     */
    private Long vehicleId;

    /**
     * 车牌号
     */
    private String vehicleNumber = "";

    /**
     * obd源数据
     */
    private String obdData = "";


    /**
     * obd上传时间
     */
    private long appReceivingObdTime;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getAppVersions() {
        return appVersions;
    }

    public void setAppVersions(String appVersions) {
        this.appVersions = appVersions;
    }

    public Long getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(Long vehicleId) {
        this.vehicleId = vehicleId;
    }

    public String getVehicleNumber() {
        return vehicleNumber;
    }

    public void setVehicleNumber(String vehicleNumber) {
        this.vehicleNumber = vehicleNumber;
    }

    public String getObdData() {
        return obdData;
    }

    public void setObdData(String obdData) {
        this.obdData = obdData;
    }

    public long getAppReceivingObdTime() {
        return appReceivingObdTime;
    }

    public void setAppReceivingObdTime(long appReceivingObdTime) {
        this.appReceivingObdTime = appReceivingObdTime;
    }

    @Override
    public String toString() {
        return "{" + "\"imei\":\"" + imei +
                "\",\"appVersions\":\"" + appVersions +
                "\",\"vehicleId\":" + vehicleId +
                ",\"vehicleNumber\":\"" + vehicleNumber +
                "\",\"obdData\":\"" + obdData +
                "\",\"appReceivingObdTime\":\"" + appReceivingObdTime +
                "\"}";
    }

}
